<?php

class Admin_EmaileventsController extends Zend_Controller_Action {

    public function init() {
        if (!Zend_Auth::getInstance()->hasIdentity()) {
            $this->_redirect("/admin/login");
        }
        $this->_helper->layout->setLayout("admin");
    }

    public function indexAction() {
        $db = new Admin_Model_Sentnotifications();
        $fetchAll = $db->fetchAll();
        $this->view->fetchAll = array_reverse($fetchAll);        
    }

}

